/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.moltos.parser;

import java.util.List;

/**
 *
 * @author MoLt1eS
 */
public class ChatBot implements Runnable{
    Chat m; 
    List<String> sn;
    
    /**
     * Receives the same chat object of the other ChatBot and the List for this ChatBot
     * @param m
     * @param sn 
     */
    public ChatBot(Chat m, List<String> sn){
        this.m=m;
        this.sn=sn;
    }
    
    public void run(){
        for (int i = 0; i < sn.size(); i++) {
            m.Question(sn.get(i));
        }
    }
    
}
